import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SEntityId } from "../Public/SEntityId";
import { SPlayer } from "./SPlayer";
import { SRole } from "./SRole";
import { SFightAttribute } from "../Public/SFightAttribute";
import { SMoney } from "./SMoney";
import { SPos } from "./SPos";
import { SSessionKey } from "../Public/SSessionKey";
//class SLoginGameReturn
    
    export  class SLoginGameReturn
    {
       

        public __write(arg1: SerializeStream): void
        {
            this.entityId.__write(arg1);
            this.player.__write(arg1);
            this.role.__write(arg1);
            this.baseFight.__write(arg1);
            this.money.__write(arg1);
            this.pos.__write(arg1);
            this.sesionKey.__write(arg1);
            arg1.writeDate(this.sysDt);
            return;
        }

        public __read(arg1: SerializeStream): void
        {
            this.entityId = new SEntityId();
            this.entityId.__read(arg1);
            this.player = new SPlayer();
            this.player.__read(arg1);
            this.role = new SRole();
            this.role.__read(arg1);
            this.baseFight = new SFightAttribute();
            this.baseFight.__read(arg1);
            this.money = new SMoney();
            this.money.__read(arg1);
            this.pos = new SPos();
            this.pos.__read(arg1);
            this.sesionKey = new SSessionKey();
            this.sesionKey.__read(arg1);
            this.sysDt = arg1.readDate();
            return;
        }

        public /* var */entityId: SEntityId;

        public /* var */player: SPlayer;

        public /* var */role: SRole;

        public /* var */baseFight: SFightAttribute;

        public /* var */money: SMoney;

        public /* var */pos: SPos;

        public /* var */sesionKey: SSessionKey;

        public /* var */sysDt: Date;
    }
